<?php
namespace Home\Controller;
use Think\Controller;

/**
 * 前端用户公共控制器
 */
class UserCommonController extends Controller{
	
	public function _initialize(){
		$user = get_session_user();
		$this->user = $user;
		$this->uid = session('uid');
		if(!$user){$this->redirect('User/login');}
	}
}